package com.rtu.enums;

/**
 * Created by lzm on 17/5/27.
 */
public enum Code {
    SUCCESS(0,"success"),
    BAD_PARAMS(40001,"bad params"),
    USER_NOT_LOGIN(40001,"user not login"),
    USER_NO_AUTH(40001,"user no auth"),
    NO_PROJECT(40002,"工程不存在"),
    NO_STAITON(40003,"站点不存在"),
    COMMON_DB_CONNECT_FAIL(40004,"database connect fail"),
    COMMON_SERVER_ERROR(40006,"server error");

    public int code;
    public String msg;
    Code(int code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
